<template>
  <button class="mt-item" @tap="bindClick">
    <slot></slot>
  </button>
</template>

<script>
  export default {
    behaviors: [],
    data() {
      return {
        isChecked: false
      }
    },
    attached() {
    },
    methods: {
      bindClick(e) {
        this.setData({
          isChecked: !this.data.isChecked
        })
        this.triggerEvent('clicked', e.detail)
      }
    },
  }
</script>

<style lang="less">

</style>

